package com.qiuyuliantu.common.core.domain.entity;

import com.qiuyuliantu.common.annotation.Excel;
import com.qiuyuliantu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 邮件服务对象 sys_user_mail
 *
 * @author ruoyi
 * @date 2024-11-20
 */
public class SysUserMail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 发件人名称 */
    @Excel(name = "发件人名称")
    private String name;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String mail;

    /** 授权码 */
    @Excel(name = "授权码")
    private String password;

    /** 发送服务器 */
    @Excel(name = "发送服务器")
    private String host;

    /** 邮箱类型 */
    @Excel(name = "邮箱类型")
    private String type;

    /** 是否验证 */
    @Excel(name = "是否验证")
    private String auth;

    /** 服务器端口 */
    @Excel(name = "服务器端口")
    private String port;

    /** 帐号状态 */
    @Excel(name = "帐号状态")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setmail(String mail)
    {
        this.mail = mail;
    }

    public String getmail()
    {
        return mail;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setHost(String host)
    {
        this.host = host;
    }

    public String getHost()
    {
        return host;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setAuth(String auth)
    {
        this.auth = auth;
    }

    public String getAuth()
    {
        return auth;
    }
    public void setPort(String port)
    {
        this.port = port;
    }

    public String getPort()
    {
        return port;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("mail", getmail())
            .append("password", getPassword())
            .append("host", getHost())
            .append("type", getType())
            .append("auth", getAuth())
            .append("port", getPort())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }


}
